﻿{extend name="public:base" /}

{block name="css"}
<link href="__ADMIN__/css/style.css" rel="stylesheet">
{/block}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post" class="layui-form fairy-form">
                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">门店名称</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" value="{$info.name}" placeholder="请输入门店名称" disabled>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">门店地址</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" value="{$info.province}-{$info.city}-{$info.area}" placeholder="请输入门店地址" disabled>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">营业执照</label>
                                <div class="col-sm-3">
                                    <img class="upload-file" src="{:getPicture($info.yyzz_img)}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>


                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">门店照片</label>
                                <div class="col-sm-3">
                                    {volist name="info.shop_imgs" id="vo"}
                                    <img class="upload-file" src="{:getPicture($vo.path)}">
                                    {/volist}
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>


                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">审核状态 </label>
                                <div class="col-sm-3">
                                    {if $info.status == 0}
                                    <div class="i-checks">
                                        <label> <input type="radio" value="0" name="status" {$info.status== 0 ?
                                            'checked' : ''}> 待审核 </label>
                                    </div>
                                    <div class="i-checks">
                                        <label> <input type="radio" value="1" name="status" {$info.status== 1 ?
                                            'checked' : ''}> 审核成功 </label>
                                    </div>
                                    <div class="i-checks">
                                        <label> <input type="radio" value="2" name="status" {$info.status== 2 ?
                                            'checked' : ''}> 审核失败 </label>
                                    </div>
                                    {else /}
                                    <input type="text" class="form-control" value="{$info.status == 0 ? '待审核' : ($info.status == 1 ? '审核成功' : '审核失败')}" placeholder="请输入门店名称" disabled>
                                    {/if}
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <input type="hidden" name="id" value="{:input('id')}">

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                {if $info.status == 0}
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">
                                    提交
                                </button>
                                {/if}
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}